<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>班级风采</title>
<meta name="description" content="Free Responsive Html5 Css3 Templates ">
<meta name="author" content="#">
<meta name="viewport"
	content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="./css/zerogrid.css">
<link rel="stylesheet" href="./css/style.css">
<link href="./font-awesome/css/font-awesome.min.css" rel="stylesheet"
	type="text/css">
<link href="./css/menu.css" rel="stylesheet">
<script src="./js/jquery1111.min.js" type="text/javascript"></script>
<script src="./js/script.js"></script>
<link href="./owl-carousel/owl.carousel.css" rel="stylesheet">
</head>
<body>
	<div class="wrap-body">
		<div id='cssmenu' class="align-center">
			<ul>
					<li>
						<a href='/SSH2/index'><span>班级主页</span></a>
					</li>
					
					<li>
						<a href='/SSH2/culture'><span>班级文化</span></a>
					</li>

					<li class=' has-sub'>
						<a><span>班级成员</span></a>
						<ul>
							<li class='has-sub'>
								<a href="/SSH2/software/showStudent"><span>所有成员</span></a>
							</li>
							<li class='has-sub'>
								<a href='/SSH2/software/showCommittees'><span>班干组成</span></a>
							</li>
						</ul>
					</li>

					<li class="active">
						<a href='/SSH2/showActivity'><span>班级风采</span></a>
					</li>

					<li>
						<a href='/SSH2/showMessages'><span>留言板</span></a>
					</li>
					
					<li class='last'>
						<a href='/SSH2/toAdminLogin'><span>管理员</span></a>
					</li>
				</ul>
		</div>
		<section id="container">
			<div class="wrap-container">
				<c:if test="${empty requestScope.activityList}">
					<article class="single-post zerogrid">
							<div class="row wrap-post">
								<!--Start Box-->
								<div class="entry-header">
									<h2 class="entry-title">暂无任何活动</h2>
								</div>
							</div>
						</article>
				</c:if>
				<c:if test="${!empty requestScope.activityList}">
					<c:forEach items="${requestScope.activityList}" var="activity">
						<article class="single-post zerogrid">
							<div class="row wrap-post">
								<!--Start Box-->
								<div class="entry-header">
									<h2 class="entry-title">${activity.getTitle() }</h2>
									<p>${activity.getTexts() }</p>
								</div>
								<c:if test="${!empty activity.getImageUrl()  }">
									<div class="post-thumbnail-wrap">
										<img src="${activity.getImageUrl() }">
								    </div>
								</c:if>
							</div>
						</article>
					</c:forEach>
				</c:if>
			</div>
		</section>
	</div>
</body>

</html>
